package easy.netty.net.autoconfigure;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @author cengy
 */
@Component
@Configuration
@EnableConfigurationProperties(EasyNettyProperties.class)
@ComponentScan("easy.netty.net")
@ConditionalOnProperty(name = "easy.netty.net.enabled",
        havingValue = "true",
        matchIfMissing = true)
public class EasyNettyAutoConfiguration {

}